package com.zyg.seckill;

import com.zyg.common.utils.IdWorker;
import org.junit.Before;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * ------------------------------
 * 功能：
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/11/25-15:01
 * ------------------------------
 */
@SpringBootApplication
@EnableFeignClients
public class SeckillApplication {
    public static void main(String[] args) {
        SpringApplication.run(SeckillApplication.class);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker(0,1);
    }
}
